package com.muyu.system.service.impl;


import com.muyu.system.domain.DanmoShoppingPaymentMethods;
import com.muyu.system.mapper.DanmoShoppingPaymentMethodsMapper;
import com.muyu.system.service.IDanmoShoppingPaymentMethodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 支付方式Service业务层处理
 * 
 * @author kunzong
 * @date 2024-12-16
 */
@Service
public class DanmoShoppingPaymentMethodsServiceImpl implements IDanmoShoppingPaymentMethodsService
{
    @Autowired
    private DanmoShoppingPaymentMethodsMapper danmoShoppingPaymentMethodsMapper;

    /**
     * 查询支付方式
     * 
     * @param id 支付方式主键
     * @return 支付方式
     */
    @Override
    public DanmoShoppingPaymentMethods selectDanmoShoppingPaymentMethodsById(Long id)
    {
        return danmoShoppingPaymentMethodsMapper.selectDanmoShoppingPaymentMethodsById(id);
    }

    /**
     * 查询支付方式列表
     * 
     * @param danmoShoppingPaymentMethods 支付方式
     * @return 支付方式
     */
    @Override
    public List<DanmoShoppingPaymentMethods> selectDanmoShoppingPaymentMethodsList(DanmoShoppingPaymentMethods danmoShoppingPaymentMethods)
    {
        return danmoShoppingPaymentMethodsMapper.selectDanmoShoppingPaymentMethodsList(danmoShoppingPaymentMethods);
    }

    /**
     * 新增支付方式
     * 
     * @param danmoShoppingPaymentMethods 支付方式
     * @return 结果
     */
    @Override
    public int insertDanmoShoppingPaymentMethods(DanmoShoppingPaymentMethods danmoShoppingPaymentMethods)
    {
        return danmoShoppingPaymentMethodsMapper.insertDanmoShoppingPaymentMethods(danmoShoppingPaymentMethods);
    }

    /**
     * 修改支付方式
     * 
     * @param danmoShoppingPaymentMethods 支付方式
     * @return 结果
     */
    @Override
    public int updateDanmoShoppingPaymentMethods(DanmoShoppingPaymentMethods danmoShoppingPaymentMethods)
    {
        return danmoShoppingPaymentMethodsMapper.updateDanmoShoppingPaymentMethods(danmoShoppingPaymentMethods);
    }

    /**
     * 批量删除支付方式
     * 
     * @param ids 需要删除的支付方式主键
     * @return 结果
     */
    @Override
    public int deleteDanmoShoppingPaymentMethodsByIds(Long[] ids)
    {
        return danmoShoppingPaymentMethodsMapper.deleteDanmoShoppingPaymentMethodsByIds(ids);
    }

    /**
     * 删除支付方式信息
     * 
     * @param id 支付方式主键
     * @return 结果
     */
    @Override
    public int deleteDanmoShoppingPaymentMethodsById(Long id)
    {
        return danmoShoppingPaymentMethodsMapper.deleteDanmoShoppingPaymentMethodsById(id);
    }
}
